﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using IUI;
using BaseUI;
using BL;

namespace WinUI
{
   public partial class MainForm : /*Form*/ BaseWinForm<MainPageController>, IMainPage
   {
      private event EventHandler btnClick;
      
      public MainForm()
      {
         InitializeComponent();
      }

      public DateTime Date
      {
         set { label1.Text = value.ToString(); }
      }

      public EventHandler ClickButton
      {
         get { return btnClick; }
         set { btnClick = value; }
      }

      protected void _ClickButton(object sender, EventArgs e)
      {
         if (btnClick != null) btnClick(this, null);
      }
   }
}
